import request from '@/utils/request'

/**
 * @description: 获取经销商列表
 * @param {*} params
 */
export function getDealerList(params) {
  return request({
    url: '/sytstem/dealer/list',
    params
  })
}

/**
 * @description: 保存进销商信息
 * @param {*} data
 */
export function saveDealerMessage(data) {
  return request({
    url: '/sytstem/dealer/save',
    method: 'post',
    data
  })
}

/**
 * @description: 验证经销商ID是否重复
 * @param {*} params
 */
export function isCanUseDealerID(params) {
  return request({
    url: '/sytstem/validate/dealerid',
    params
  })
}

/**
 * @description: 选择经销商
 * @param {*} params
 */
export function getDealerSelect(params) {
  return request({
    url: '/sytstem/dealer/select',
    params
  })
}
